/** @file         cdev_manager.h
 *  @brief        简要说明
 *  @details      详细说明
 *  @author       Schips
 *  @date         2020-10-25 10:48:35
 *  @version      v1.0
 *  @copyright    Copyright By Schips, All Rights Reserved
 *
 **********************************************************
 *
 *  @attention    NOTE
#*
#*
 *  @par 修改日志:
 *  <table>
 *  <tr><th>Date       <th>Version   <th>Author    <th>Description
 *  <tr><td>2020-10-25 <td>1.0       <td>Schips    <td>创建初始版本
 *  </table>
 *
 **********************************************************
 */

#ifndef __CDEV_MARAGER__
#define __CDEV_MARAGER__

/*! \enum READY_FLAG
 *
 *  Detailed description
 */
enum READY_FLAG {
    READY_FLAG_NOTYET,
    READY_FLAG_INITED,
};

#define PRINT           printk
#define PRINT_LV        "<3>"

/******** 对外API ********/
// 打印所有注册的节点 
void cm_dump(void); 
// 注册一个节点
int cm_add_cdev(char *cdev_name, 
                unsigned int count, 
                struct file_operations* cdev_fops);
// 移除一个节点
void cm_remove_cdev(char *cdev_name); 
// 删除所有结点
void cm_destroy(void);

#endif /* Head define end*/

